home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / gripes.h < prev    next >
C/C++ Source or Header  |  1997-03-07  |  2KB  |  59 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_gripes_h)
  24. #define octave_gripes_h 1
  25.  
  26. #include <string>
  27.  
  28. class octave_value;
  29.  
  30. extern void gripe_not_supported (const char *);
  31. extern void gripe_string_invalid (void);
  32. extern void gripe_range_invalid (void);
  33. extern void gripe_nonconformant (void);
  34. extern void gripe_nonconformant (int r1, int c1, int r2, int c2);
  35. extern void gripe_empty_arg (const char *name, int is_error);
  36. extern void gripe_square_matrix_required (const char *name);
  37. extern void gripe_user_supplied_eval (const char *name);
  38. extern void gripe_user_returned_invalid (const char *name);
  39. extern void gripe_invalid_conversion (const string& from, const string& to);
  40. extern void gripe_invalid_value_specified (const char *name);
  41. extern void gripe_2_or_3_dim_plot (void);
  42. extern void gripe_unrecognized_float_fmt (void);
  43. extern void gripe_unrecognized_data_fmt (const char *warn_for);
  44. extern void gripe_data_conversion (const char *from, const char *to);
  45. extern void gripe_wrong_type_arg (const char *name, const string& s);
  46. extern void gripe_wrong_type_arg (const char *name, const octave_value& tc);
  47. extern void gripe_wrong_type_arg_for_unary_op (const octave_value& op);
  48. extern void gripe_wrong_type_arg_for_binary_op (const octave_value& op);
  49. extern void gripe_implicit_conversion (const char *from, const char *to);
  50. extern void gripe_divide_by_zero (void);
  51.  
  52. #endif
  53.  
  54. /*
  55. ;;; Local Variables: ***
  56. ;;; mode: C++ ***
  57. ;;; End: ***
  58. */
  59.